package com.youlu.campus.service.order;

import com.youlu.campus.entity.OrderShippingTask;
import com.youlu.campus.entity.VO.req.OrderShippingTaskQueryVO;
import com.youlu.campus.entity.ems.EmsPostControllerResult;
import org.springframework.data.domain.Page;

public interface OrderShippingTaskService {
    Page<OrderShippingTask> list(OrderShippingTaskQueryVO req);

    boolean update(OrderShippingTask req);

    boolean create(OrderShippingTask req, byte[] inputStream, String fileName, String optLoginName);

    OrderShippingTask findOne(String id);

    boolean cancel(String id);

    boolean preDo(String id);

    boolean done(String id, String ip, String optUserName);

    boolean delete(String id);

    boolean reverse(byte[] inputStream, String fileName, String optLoginName, String activityId);

    /**
     * 查询该订单发货是否管控
     * @param orderNo
     * @return
     */
    EmsPostControllerResult findPostControllerByOrderNo(String orderNo);
}
